<?php

$ServerInformation = new Core\Data\SQL\ServerInformation ();
$ServerInformation->Type = Core\Data\SQL\MYSQL;
$ServerInformation->Host = "mysql5.uniweb.no";
$ServerInformation->Username = "corefram";
$ServerInformation->Password = "8756df45";

$ConnectionEx = new Core\Data\SQL\ConnectionEx ( $ServerInformation );
$ConnectionEx->setDatabase( "corefram" );

$Generator = new Core\Data\Generator ();
$Generator->addDefinition( $this->Paths->Definitions . "Helpers/Users.xml" );
$Generator->addDefinition( $this->Paths->Definitions . "Org/Manual.xml" );
//$Generator->generateDatabases( $ConnectionEx, Core\Data\GENERATOR_SIMULATE );
$Generator->generateDatabases( $ConnectionEx, Core\Data\GENERATOR_WIPE | Core\Data\GENERATOR_SIMULATE );

$Generator->report();



//$UDD = new Core\Data\UDD\Structure ();
//$UDD->interpretDocument( $this->Paths->Definitions . "Helpers/Users.xml" );
//$UDD->interpretDocument( $this->Paths->Definitions . "Org/Manual.xml" );
//$UDD->info();


// Example of how to move a database.

//$conn1 = new Core\Data\SQL\Connection ( "mysql:://..." );
//$conn2 = new Core\Data\SQL\ConnectionEx ( "mysql:://..." );
//
//$conn1->exec( $conn2->export() );

?>